package com.sy.dao;


import com.sy.entity.Osslog;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface OsslogDao {
    /*新增*/
    @Insert("insert into t_osslog (objname,bname,url,flag,ctime,etime) values(#{objname},#{bname},#{url},#{flag},now(),#{etime})")
    int insert(Osslog osslog);

    /*删除*/
    @Delete("delete from t_osslog where id=#{id}")
    int deleteById(int id);
    /*查询全部*/
    @Select("select * from t_osslog")
    List<Osslog> all();
}